package com.hh.demo.constants;

/**
 * 此项目异常的枚举类
 * @author 黄浩
 * @create 2022-07-17 17:15
 */
public enum DemoError {

    COMMON_IMG_CODE_NULL("4001","图形验证码已过期，请重新获取！"),
    COMMON_IMG_CODE_ERROR("4002","图形验证码输入有误，请重新输入！"),
    COMMON_TEL_EXISTS("4003","该手机号已注册"),
    COMMON_SERIOUS("4004","密麻麻石蜡！"),
    COMMON_TEL_CODE_NULL("4005","手机验证码已过期，请重新获取！"),
    COMMON_TEL_CODE_ERROR("4006","手机验证码输入有误，请重新输入！"),
    COMMON_BLACK_EXISTS("4007","该记录已被拉黑"),

    LOGIN_SAVE_FAIL("4201","登录信息保存失败！"),
    USER_SAVE_FAIL("4301","用户信息保存失败！"),


    ;

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误描述
     */
    private String message;

    DemoError(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
